﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E45 RID: 3653
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueAdventureRoomTargetMiracle : IMessage<RogueAdventureRoomTargetMiracle>, IMessage, IEquatable<RogueAdventureRoomTargetMiracle>, IDeepCloneable<RogueAdventureRoomTargetMiracle>, IBufferMessage
	{
		// Token: 0x17002E7E RID: 11902
		// (get) Token: 0x0600A422 RID: 42018 RVA: 0x001BADE4 File Offset: 0x001B8FE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueAdventureRoomTargetMiracle> Parser
		{
			get
			{
				return RogueAdventureRoomTargetMiracle._parser;
			}
		}

		// Token: 0x17002E7F RID: 11903
		// (get) Token: 0x0600A423 RID: 42019 RVA: 0x001BADEB File Offset: 0x001B8FEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueAdventureRoomTargetMiracleReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002E80 RID: 11904
		// (get) Token: 0x0600A424 RID: 42020 RVA: 0x001BADFD File Offset: 0x001B8FFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueAdventureRoomTargetMiracle.Descriptor;
			}
		}

		// Token: 0x0600A425 RID: 42021 RVA: 0x001BAE04 File Offset: 0x001B9004
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAdventureRoomTargetMiracle()
		{
		}

		// Token: 0x0600A426 RID: 42022 RVA: 0x001BAE0C File Offset: 0x001B900C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAdventureRoomTargetMiracle(RogueAdventureRoomTargetMiracle other) : this()
		{
			this.miracleId_ = other.miracleId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A427 RID: 42023 RVA: 0x001BAE31 File Offset: 0x001B9031
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAdventureRoomTargetMiracle Clone()
		{
			return new RogueAdventureRoomTargetMiracle(this);
		}

		// Token: 0x17002E81 RID: 11905
		// (get) Token: 0x0600A428 RID: 42024 RVA: 0x001BAE39 File Offset: 0x001B9039
		// (set) Token: 0x0600A429 RID: 42025 RVA: 0x001BAE41 File Offset: 0x001B9041
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MiracleId
		{
			get
			{
				return this.miracleId_;
			}
			set
			{
				this.miracleId_ = value;
			}
		}

		// Token: 0x0600A42A RID: 42026 RVA: 0x001BAE4A File Offset: 0x001B904A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueAdventureRoomTargetMiracle);
		}

		// Token: 0x0600A42B RID: 42027 RVA: 0x001BAE58 File Offset: 0x001B9058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueAdventureRoomTargetMiracle other)
		{
			return other != null && (other == this || (this.MiracleId == other.MiracleId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A42C RID: 42028 RVA: 0x001BAE88 File Offset: 0x001B9088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MiracleId != 0U)
			{
				num ^= this.MiracleId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A42D RID: 42029 RVA: 0x001BAEC7 File Offset: 0x001B90C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A42E RID: 42030 RVA: 0x001BAECF File Offset: 0x001B90CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A42F RID: 42031 RVA: 0x001BAED8 File Offset: 0x001B90D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MiracleId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.MiracleId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A430 RID: 42032 RVA: 0x001BAF0C File Offset: 0x001B910C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MiracleId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MiracleId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A431 RID: 42033 RVA: 0x001BAF4A File Offset: 0x001B914A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueAdventureRoomTargetMiracle other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MiracleId != 0U)
			{
				this.MiracleId = other.MiracleId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A432 RID: 42034 RVA: 0x001BAF7B File Offset: 0x001B917B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A433 RID: 42035 RVA: 0x001BAF84 File Offset: 0x001B9184
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 112U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.MiracleId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040042E3 RID: 17123
		private static readonly MessageParser<RogueAdventureRoomTargetMiracle> _parser = new MessageParser<RogueAdventureRoomTargetMiracle>(() => new RogueAdventureRoomTargetMiracle());

		// Token: 0x040042E4 RID: 17124
		private UnknownFieldSet _unknownFields;

		// Token: 0x040042E5 RID: 17125
		public const int MiracleIdFieldNumber = 14;

		// Token: 0x040042E6 RID: 17126
		private uint miracleId_;
	}
}
